package com.ruoyi.electrical.service.impl;

import java.util.List;

import com.ruoyi.electrical.domain.ElectricalEmergencyCheck;
import com.ruoyi.electrical.mapper.ElectricalEmergencyCheckMapper;
import com.ruoyi.electrical.service.IElectricalEmergencyCheckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 【请填写功能名称】Service业务层处理
 *
 * @author ruoyi
 * @date 2022-05-09
 */
@Service
public class ElectricalEmergencyCheckServiceImpl implements IElectricalEmergencyCheckService
{
    @Autowired
    private ElectricalEmergencyCheckMapper electricalEmergencyCheckMapper;

    /**
     * 查询【请填写功能名称】
     *
     * @param emergencyCheckId 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public ElectricalEmergencyCheck selectElectricalEmergencyCheckByEmergencyCheckId(Long emergencyCheckId)
    {
        return electricalEmergencyCheckMapper.selectElectricalEmergencyCheckByEmergencyCheckId(emergencyCheckId);
    }

    /**
     * 查询【请填写功能名称】列表
     *
     * @param electricalEmergencyCheck 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<ElectricalEmergencyCheck> selectElectricalEmergencyCheckList(ElectricalEmergencyCheck electricalEmergencyCheck)
    {
        return electricalEmergencyCheckMapper.selectElectricalEmergencyCheckList(electricalEmergencyCheck);
    }

    /**
     * 新增【请填写功能名称】
     *
     * @param electricalEmergencyCheck 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertElectricalEmergencyCheck(ElectricalEmergencyCheck electricalEmergencyCheck)
    {
        return electricalEmergencyCheckMapper.insertElectricalEmergencyCheck(electricalEmergencyCheck);
    }

    /**
     * 修改【请填写功能名称】
     *
     * @param electricalEmergencyCheck 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateElectricalEmergencyCheck(ElectricalEmergencyCheck electricalEmergencyCheck)
    {
        return electricalEmergencyCheckMapper.updateElectricalEmergencyCheck(electricalEmergencyCheck);
    }

    /**
     * 批量删除【请填写功能名称】
     *
     * @param emergencyCheckIds 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteElectricalEmergencyCheckByEmergencyCheckIds(Long[] emergencyCheckIds)
    {
        return electricalEmergencyCheckMapper.deleteElectricalEmergencyCheckByEmergencyCheckIds(emergencyCheckIds);
    }

    /**
     * 删除【请填写功能名称】信息
     *
     * @param emergencyCheckId 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteElectricalEmergencyCheckByEmergencyCheckId(Long emergencyCheckId)
    {
        return electricalEmergencyCheckMapper.deleteElectricalEmergencyCheckByEmergencyCheckId(emergencyCheckId);
    }
}
